#pragma once
#include "StudentRegister.h"
using namespace std;
class CourseUppgift5
{
private:
	string name;
	int year;
public:

	CourseUppgift5()
	{
		this->name = " ";
		this->year = -1;
	}

	CourseUppgift5(string name, int year)
	{
		this->name = name;
		this->year = year;
	}

	virtual void print()
	{
		cout << "Name: " << name << endl << "Year: " << year << endl;
	}

	string GetName(){ return this->name; }
	void SetName(string n){ this->name = n; }

	int GetYear(){ return year; }
	void SetYear(int y){ this->year = y; }

	~CourseUppgift5()
	{
	}
};

